<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="java.util.List"%>
<%@page import="org.jbpm.graph.def.ProcessDefinition;"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'showJiLu.jsp' starting page</title>
	</head>

	<body>
		<h1>所有申请记录有：</h1>
		<br>
		<table width="85%" border="1" cellpadding="0" cellspacing="0">
			<tr>
				<td>
					审批类型
				</td>
				<td>
					版本号
				</td>
				<td>
					详情
				</td>
			</tr>
			<%
				List list = (List) request.getAttribute("pds");
				if (list != null && list.size() > 0) {
					for (Object o : list) {
						ProcessDefinition pd = (ProcessDefinition) o;
						String name = pd.getName();
						int banben = pd.getVersion();
			%>
			<tr>
				<td><%=name%></td>
				<td><%=banben%></td>
				<td>
					<a
						href="<%=request.getContextPath()%>/showPd.do?pdId=<%=String.valueOf(pd.getId())%>&name=<%=name%>">查看</a>
				</td>
			</tr>
			<%
				}
				} 
			%>
		</table>
	</body>
</html>
